from django.contrib import admin
import xadmin
from .models import Home_Blog
# Register your models here.


class HomeAdmin(object):
    list_display = ['home_blog_title', 'home_blog_desc', 'home_blog_url', 'home_blog_comments',
                    'home_blog_author', 'home_blog_create_time'
                    ]
    search_fields = ['home_blog_title', 'home_blog_desc', 'home_blog_url', 'home_blog_comments',
                     'home_blog_author'
                    ]
    list_filter = ['home_blog_title', 'home_blog_desc', 'home_blog_url', 'home_blog_comments',
                    'home_blog_author', 'home_blog_create_time'
                    ]

xadmin.site.register(Home_Blog, HomeAdmin)